package dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import dao.YiJiZuZhiDao;
import entity.Yijizuzhi;

public class YiJiZuZhiDaoImpl extends HibernateDaoSupport implements
		YiJiZuZhiDao {

	public void addYiJiZuZhi(Yijizuzhi yijizuzhi) {
		getHibernateTemplate().save(yijizuzhi);
	}

	public void updateYiJiZuZhi(Yijizuzhi yijizuzhi) {
		getHibernateTemplate().update(yijizuzhi);
	}

	public void deleteYiJiZuZhi(Long id) {
		Yijizuzhi yijizuzhi=getHibernateTemplate().get(Yijizuzhi.class, id);
	}

	public Yijizuzhi findOneYiJiZuZhiById(Long id) {
		return getHibernateTemplate().get(Yijizuzhi.class, id);
	}

	public List<Yijizuzhi> findAllYiJiZuZhi() {
		return getHibernateTemplate().find("from Yijizuzhi");
	}

	public List<Yijizuzhi> findYijizuzhisByCondition(Map map) {
		// TODO Auto-generated method stub
		return null;
	}

}
